<?php if (empty($data) || count($data) == 0) { ?>
<div style="text-align:center; padding-top:20px;"><?php __('no result found'); ?></div>
<?php } else { ?>
<table width="100%" cellpadding="2" cellspacing="0" border="0" class="reportTbl reportTbl2">
  <thead>
    <tr>
      <td><?php __('No'); ?></td>
      <td><?php __('Name'); ?></td>
      <td><?php __('Account No'); ?></td>
      <td><?php __('Receiving Bank'); ?></td>
      <td><?php __('IC No.'); ?></td>
      <td><?php __('Disbursed Amount (RM)'); ?></td>
    </tr>
  </thead>
  <tbody>
<?php     $i = 0;
          foreach ($data as $code=>$row) {
              $i    += 1;
              $style = ($i%2==0)?'':' style="background-color: #E3E3E3;"'; ?>
    <tr>
      <td<?php e($style); ?>><?php e($i); ?></td>
      <td><?php echo isset($row['fullname']) ? $row['fullname']:'-'; ?></td>
      <td><?php echo isset($row['acc_no']) ? $row['acc_no']:'-'; ?></td>
      <td><?php echo isset($row['bankname']) ? $row['bankname']:'-'; ?></td>
      <td align="center"><?php echo isset($row['identity']) ? $row['identity']:'-'; ?></td>
      <td align="right"><?php e(number_format($row['total'],2)); ?></td>
    </tr>
<?php     } ?>
  </tbody>
</table>

<div style="margin-top:10px; text-align:center;">
  <a href="<?php e($this->base); ?>/files/bonus_payout.csv"><?php __('download report') ?></a>
</div>

<?php } ?>